<html>
<head>
<title>Confirm</title>
</head>

<body>

<script type="text/javascript">

var a = 3;
var ary = new Array();

function clearAuthenticationCache() {
	  var page = '/';
	  try {
	    var agt=navigator.userAgent.toLowerCase();
	    if (agt.indexOf("msie") != -1) {
	      // IE clear HTTP Authentication
	      document.execCommand("ClearAuthenticationCache");
	    }
	    else if (agt.indexOf("firefox") != -1 || agt.indexOf("chrome") != -1) {
	      // Let's create an xmlhttp object
	      var xmlhttp = createXMLObject();
	      // Let's prepare invalid credentials
	      xmlhttp.open("GET", page, true, "logout", "logout");
	      // Let's send the request to the server
	      xmlhttp.send("");
	      // Let's abort the request
	      //xmlhttp.abort();
	    }
	    else {
	      window.close();
	    }
	  } catch(e) {
	    // There was an error
	    return;
	  }
	}
	    
	function createXMLObject() {
	  try {
	    if (window.XMLHttpRequest) {
	      xmlhttp = new XMLHttpRequest();
	    }
	    // code for IE
	    else if (window.ActiveXObject) {
	      xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	    }
	  } catch (e) {
	    xmlhttp=false
	  }
	  return xmlhttp;
	}


</script>
<a href="javascript:clearAuthenticationCache();">logout</a>
<form name="main">
<input type="button onClick="yes()" value="Yes">&nbsp;&nbsp;
<input type="button onClick="edit()" value="Edit">&nbsp;&nbsp;
<input type="button onClick="cancel()" value="Cancel">
</form>
<select onchange="window.open(this.value);"> 
  <option value="http://www.baidu.com" selected>Chinese</option> 
  <option value="http://www.sina.com">English </option> 
</select>
<img src="Test.jsp"></img>
</body>
</html>